<template>
  <div id="app">
    <router-view v-if="isRouterAlive"/>
  </div>
</template>

<script>
  export default {
    name: 'App',
    provide() {
      return {
        reload: this.reload
      }
    },
    data() {
      return {
        isRouterAlive: true,
      }
    },
    methods: {
      reload() {
        this.isRouterAlive = false
        this.$nextTick(function () {
          this.isRouterAlive = true
        })
      },
    }
  }
</script>

<style>
  a {
    text-decoration: none;
  }

  li {
    list-style: none;
  }

  div {
    margin: 0;
    padding: 0;
  }

  img {
    border: 0;
  }

  input {
    margin: 0;
    padding: 0;
    border: 0;
  }

  body {
    min-width: 1040px;
    margin: 0 8px 8px 8px;
    padding: 0 10px 10px 10px;
    color: #666;
    text-align: center;
    font-family: Arial, 'Lucida Grande', 'Microsoft Yahei', 'Hiragino Sans GB',
    'Hiragino Sans GB W3', SimSun, 'PingFang SC', STHeiti;
  }

  .clearFix {
    clear: both;
    height: 0;
    overflow: hidden;
  }
</style>
